'use strict'

class Route {
	constructor() {
		this.routemapNotLogin = {} //用户不需要登录的请求路由
		this.routemapLogin = {} //用户登录后的请求路由
	}

	setNotLogin(routename, func) {
		this.routemapNotLogin[routename] = func
	}

	getNotLogin(routename) {
		return this.routemapNotLogin[routename]
	}

	set(routename, func) {
		this.routemapLogin[routename] = func
	}
	
	getLogin(routename) {
		return this.routemapLogin[routename]
	}
}
let route = new Route()
module.exports = route